package edu.xjtu.jih.login;

import org.apache.ibatis.annotations.Select;

public interface LoginDao {
    @Select("select count(u_name) from user where u_name = #{u_name} and u_passord = #{u_pwd}")
    int findUserCountByIdAndPwd(LoginDto dto);

    @Select("select u_id from user where u_name = #{u_name} and u_passord = #{u_pwd}")
    int findUserID(LoginDto dto);
}
